<?php
$posts = $this->requestAction('posts/index/sort:created/direction:desc/limit:2');
foreach($posts as $post):
    echo $post['Post']['title'] . " " . $post['Post']['id'] . "<br>";
endforeach; 
?>
